package com.gang.mars.basic.jvm;

/**
 * 类说明：gang.chen springboot深度实践
 *
 * @author gang.chen
 * @since 2022/6/26
 */
public class DynamicLoad {
    static {
        System.out.println("*****************Load DynamicLoad****************");
    }

    public static void main(String[] args) {
        new A();

        System.out.println("*****************Load Test****************");

        B b = null;
    }

}

class A {
    static {
        System.out.println("*****************Load A****************");
    }

    public A(){
        System.out.println("*****************Init A****************");
    }
}

class B {
    static {
        System.out.println("*****************Load B****************");
    }

    public B(){
        System.out.println("*****************Init B***************");
    }
}
